﻿using System.ComponentModel.DataAnnotations;

namespace JSLCloud.App.Mes.Models.TPMUser
{
    /// <summary>
    /// 登陆实体
    /// </summary>
    public class TPMUserAccountAddModel
    {
        /// <summary>
        /// 登陆账户
        /// </summary>       
        [StringLength(maximumLength: 12)]
        public string LoginName { get; set; }

        

        /// <summary>
        /// 账号密码
        /// </summary>       
        [Required]
        [StringLength(maximumLength: 100)]
        public string Passwd { get; set; }
    }

    /// <summary>
    /// 登陆返回实体
    /// </summary>
    public class LoginResult
    {

        /// <summary>
        /// 是否登陆成功
        /// </summary>
        public bool IsSuccess { get; set; }

        ///// <summary>
        ///// 菜单按钮权限
        ///// </summary>
        //public List<MenuViewModel> Permissions { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public string Token { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        public string Dept { get; set; }

        /// <summary>
        /// 角色
        /// </summary>
        public string Role { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 生产开工报单
        /// </summary>
        public bool Sckgbd { get; set; } = false;

        /// <summary>
        /// 生产完工报单
        /// </summary>
        public bool Scwgbd { get; set; } = false;

        /// <summary>
        /// 生产停工报单
        /// </summary>
        public bool Sctgbd { get; set; } = false;

        /// <summary>
        /// 生产异常报单
        /// </summary>
        public bool Scycbd { get; set; } = false;

        /// <summary>
        /// 生产项目进度确认-技术
        /// </summary>
        public bool Scjsjd { get; set; } = false;

        /// <summary>
        /// 生产项目进度确认-采购
        /// </summary>
        public bool Sccgjd { get; set; } = false;

        /// <summary>
        /// 仓库入库记录
        /// </summary>
        public bool Ckrkjl { get; set; } = false;

        /// <summary>
        /// 仓库其他入库
        /// </summary>
        public bool Ckqtrk { get; set; } = false;

        /// <summary>
        /// 仓库出库记录
        /// </summary>
        public bool Ckckjl { get; set; } = false;

        /// <summary>
        /// 仓库其他出库
        /// </summary>
        public bool Ckqtck { get; set; } = false;

        /// <summary>
        /// 报表
        /// </summary>
        public bool Bb { get; set; } = false;
    }
}
